package com.kai.steering.data.service.service;

import com.kai.steering.common.vo.Result;
import com.kai.steering.common.web.service.BaseService;
import com.kai.steering.data.service.entity.domainObject.QuestionDO;
import com.kai.steering.data.service.entity.domainObject.UserQuestionDO;
import com.kai.steering.data.service.entity.po.UserQuestion;

import java.util.List;
import java.util.Map;

/**
 * @ Author     ：LiuKai.
 * @ Date       ：Created in 17:00 2022-3-1
 * @ Description：用户题目 服务
 * @ Modified By：
 * @Version:
 */
public interface UserQuestionService extends BaseService<UserQuestion> {
    UserQuestionDO getUserQuestionById(String userQuestionId);

    UserQuestionDO getUserQuestion(String userId,String questionId,boolean noteExist);
    public List<UserQuestionDO> getUserQuestions(String userId, List<String> questionIdS,boolean noteExist);

    public Map<String ,UserQuestionDO> getUserQuestionMap(String userId, List<String> questionIdS, boolean noteExist);

        /**
         * 用户题目的数据更新
         * @param userQuestionDO
         * @return
         */
    boolean updateQuestionData(UserQuestionDO userQuestionDO);

    public UserQuestionDO saveUserQuestion(UserQuestionDO userQuestionDO);

        /**
         * 回答问题的数据更新
         * @param questionId
         * @param correct
         * @return
         */
    UserQuestionDO updateQuestionData(String questionId, int correct);
}
